ImageOptimization\Classes\Rest\Route A

Total Complexity 52
Dependencies 7
Dependents 0
Total lines 413
Lines of code 179
Logical lines of code 88
Comment lines 177
Methods 24
Properties 5

Methods 24

Method Rating Maintainability Complexity Lines of code
rest_api_init()
A
53 8 22
maybe_add_args_to_config()
S
54 6 22
trigger_internal()
S
58 4 15
method_exists_in_current_class()
S
60 4 13
respond_error_json()
S
60 3 13
maybe_add_response_to_swagger()
S
61 2 12
verify_nonce_and_capability()
S
65 2 9
get_callback_method()
S
71 2 5
get_permission_callback_method()
S
69 2 6
verify_capability()
S
66 2 8
permission_callback()
S
69 2 7
verify_nonce()
S
66 2 8
respond_wrong_method()
S
69 2 6
get_self_url()
S
79 1 3
respond_success_json()
S
71 1 6
__construct()
S
79 1 3
get_name()
S
100 1 0
get_endpoint()
S
100 1 0
get_arguments()
S
82 1 3
get_user_from_request()
S
79 1 3
callback()
S
80 1 3
build_endpoint_method_config()
S
65 1 9
get_methods()
S
100 1 0
respond_with_code()
S
79 1 3